package com.ssy.lingxi.platform.manage.api.feign.inner;

import com.ssy.lingxi.common.response.Wrapper;
import com.ssy.lingxi.platform.manage.api.hystrix.inner.PlatformParameterManageControllerFallback;
import com.ssy.lingxi.platform.manage.api.model.dto.sensitive.SensitiveWordFilterDTO;
import com.ssy.lingxi.platform.manage.api.model.dto.sensitive.SensitiveWordListFilterDTO;
import com.ssy.lingxi.platform.manage.api.model.vo.sensitive.SensitiveWordFilterVO;
import com.ssy.lingxi.platform.manage.api.model.vo.sensitive.SensitiveWordListFilterVO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @menu 敏感词管理
 * @author yzc
 * @version 2.0.0
 * @date 2020/11/12
 */
@FeignClient(value = "platform-manage-service", fallback = PlatformParameterManageControllerFallback.class)
public interface SensitiveWordControllerFeign {

    @PostMapping("/manage/sensitiveWord/filter")
    Wrapper<SensitiveWordFilterVO> filterSensitiveWord(@RequestBody SensitiveWordFilterDTO request);

    @PostMapping("/manage/sensitiveWord/filterList")
    Wrapper<SensitiveWordListFilterVO> filterSensitiveWordList(@RequestBody SensitiveWordListFilterDTO request);
}
